package com.example.shardingjdbc;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class TestController {

    @Resource
    private TestMapper testMapper;

    @GetMapping("/test")
    public String test(){
        TestPO testPO = testMapper.selectById(1L);
        testMapper.insert(testPO);
        return "aa";

    }

}
